﻿
Imports iConverter.Extensions


''' <summary>
''' Foobar发送到插件提供器
''' </summary>
''' <remarks></remarks>
<PluginProvider("9D7FF237-7681-4688-8F5A-693CCB13C004",
    "发送到Foobar插件",
    "提供将当前文件添加到 Foobar 播放列表中的功能",
    "1.0", "G yc", "foobar_32x32.png",
    GetType(FoobarProvider))>
Public Class FoobarProvider
    Inherits PluginProvider(Of My.MySettings)


    Public Sub New()
        send = New SendToFoobar

        _list = New List(Of iConverter.Extensions.Plugin(Of My.MySettings))()

        _list.Add(send)
    End Sub


    Protected Function CheckRun() As Boolean
        Return Me.send.CheckCanRun
    End Function


    Private _list As List(Of iConverter.Extensions.Plugin(Of My.MySettings))
    Private send As SendToFoobar

    Private _configurator As Configurator

    Public Overrides ReadOnly Property CanConfigure As Boolean
        Get
            Return True
        End Get
    End Property

    Protected Overrides ReadOnly Property Configurator As iConverter.Contracts.IPluginConfigurator
        Get
            If _configurator Is Nothing Then
                _configurator = New Configurator()
            End If

            Return _configurator
        End Get
    End Property

    Protected Overrides Function GeneratePlugins() As System.Collections.Generic.List(Of iConverter.Extensions.Plugin(Of My.MySettings))

        'If Me._list Is Nothing Then


        'End If
        
        Return _list
    End Function

    Public Overrides ReadOnly Property Settings As My.MySettings
        Get
            Return My.Settings
        End Get
    End Property


End Class
